//导入node的express框架
const express = require('express')
//导入用户路由处理函数模块
const userHandler = require('../router_handler/user.js')

const router = express.Router()

//注册
router.post('/user/register', userHandler.register)
//登录
router.post('/user/login', userHandler.login)
//退出登录
router.post('/user/logout', userHandler.logout)
//修改头像
router.post('/user/edit-avatar', userHandler.editAvatar)

module.exports = router
